import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index'
import http from "./http"
import highlightJs from 'highlight.js'
import socket from "./socket"
import live2d from 'ttzxh-vue-live2d'
import 'ttzxh-vue-live2d/dist/ttzxh-vue-live2d.css'
// import './highlight.js'; // 这里是你项目highlight.js所在路径
import io from "socket.io-client"
import Message from "./components/Message.js"
// const io = require("socket.io-client")
Vue.prototype.$axios=http
Vue.prototype.$socket = socket
Vue.use(live2d)
Vue.config.productionTip = false
Vue.prototype.$message = Message
const isDebug_mode = process.env.NODE_ENV !== 'production';
import videojs from 'video.js';


Vue.config.debug = isDebug_mode;

Vue.config.devtools = isDebug_mode;

Vue.config.productionTip = isDebug_mode;
const errorHandler = (error, vm, info)=>{
  window.console.log(vm);//vm是出错组件实例
  window.console.log(error);//error参数包含错误信息可以锁定异常位置
  window.console.log(info)//info是出错阶段，比说是在哪个生命周期出错或者处理函数出错
}
Vue.config.errorHandler = errorHandler;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
